import { useContext } from "react";
import { TasksContext } from "../redux";
export const useRedux = () => {
  const { state, dispatch, actions } = useContext(TasksContext);
  return {
    state,
    dispatch,
    actions,
  };
};
